
#ifndef _MEMBER_BVIEWER_H_
#define _MEMBER_BVIEWER_H_

#include <BScene>
#include <BControl>
#include <BCamera>
#include <BViewer>

#define viewer_member(viewer)	((member_BViewer*)((BViewer*)viewer)->_ptr)

namespace BWE
{
	class member_BViewer
	{
	public:
		member_BViewer(BViewer* viewer);
		~member_BViewer();

		void paintControl(BControl* control, BPainter& painter);
		void freshControl(BControl* control, const BEvent& event);

		BViewer*			boss;
		BSceneHolder		scene;
		BCameraHolder		camera;
		BControlHolder		control;
	};
}

#endif